package qiu.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.List;

import qiu.tuil.ConnectDB;

public class QiuDao {
	private Connection conn;
	public void insertQiu(List<String>qiu_list)
	{
		try
		{
			conn=ConnectDB.getDBConnect();
			String sql="insert tb_qiu values(?,?)";
			PreparedStatement ps=conn.prepareStatement(sql);
			for(String msg:qiu_list)
			{
				ps.setInt(1,0);
				ps.setString(2, msg);
				ps.execute();
			}
			ps.close();
			conn.close();
		}catch(Exception e)
		{
			e.printStackTrace();
		}
	}
}
